Fix resource_name to resource