text editing fixes