fix require_resource_matche