Fix bug with error page 404 which didn't work