repair a resource 404 bug