- fixed bug when updating an object.