Fix 500 on /:locale/security