Fixed browser built-in undo issue