Adjustment to make sure the resource instance gets the loaded callback properly executed