Fix 404 logic.