fixed undo regression