Fix 404 error page. Small refactoring.