Fixed bug when updating specific fields for an object