diff --git a/httpd/fx/app/views/fx_view.kc3 b/httpd/fx/app/views/fx_view.kc3
index 0b79fb3..9862b22 100644
--- a/httpd/fx/app/views/fx_view.kc3
+++ b/httpd/fx/app/views/fx_view.kc3
@@ -61,9 +61,9 @@ defmodule FXView do
else
file = if (size == :small) do
sh_path = Sh.escape(path)
- Str.slice(system(["sh", "-c",
- "head -c 80 #{sh_path} | hexdump -C"]),
- 0, 77) + "..."
+ file = system(["sh", "-c",
+ "head -c 80 #{sh_path} | hexdump -C"])
+ Str.slice(file, 0, 77) + "..."
else
system(["hexdump", "-C", path])
end