Fixing caret display bug.