Fixed caret placement