diff --git a/vrel.lua b/vrel.lua
index 19a1c87..5022272 100644
--- a/vrel.lua
+++ b/vrel.lua
@@ -242,7 +242,7 @@ httpd.start(config.address or "*", config.port or 8155, { -- Pages
- ]] or highlight(get(name:match("^[^.]+"), request) or {data="paste not found"}, name:match("%.([a-zA-Z]+)$"):lower()))..[[
+ ]] or highlight(get(name:match("^[^.]+"), request) or {data="paste not found"}, name:lower():match("%.([a-z]+)$")))..[[