fix caret in new paste mode