Fixed bug in objectUpdate