Fixing text editing