Fix handling of 404.