Fix resource name and path.