fixed undo hopefully