fix bug of undo persistence not work