fixed error reporting on 404