Placed caret in the wrong location