Fix binding for undo