improve 404 error management