important bugfix

fixed a bug that prevented the user from editing mid-text