fix allocation error for resource_allocation