fixed undo turn changing bug