Fix bug in resources#create