put middleware back in proper place so error pages work correctly (bug introduced in 9a1363)
1 file changed