Fix multiple update bug