Fixed 404 handling.