fixed update not working with undo/redo

#202