Added type to property criteria, so no need for update_attributes