Minor Fixes in the Text Editor