small bug in 404 handling