Caret now positions properly. Fixes #207