Fixed The Text Undo in the history