Fixed a bug that caused translocations of text around the insertion point.