Fixed undo with open polygon