Fixed caret location shifting after number grouping