Removal of undo.pop()

Forgot to remove it previously. Will result in a bug.