fix issue close/undo-close