Fixed bug around updating object