Fixed incorrect ids when methods are in a resource_type