Fix resource with parent not data error