handle 404 correctly