Fixed caret offset issue.