Patch UNDO (do not crash on undefined op.p)