fixed
fixed undo bugs