fixed a bug in 404 handling