Fix data not being set on Resource.data