fixed correct 404 handling