Multiple character caret position bug fix. Small refractor