fix: leave do not reset undo break state