Fixed bugs when SequenceCanvas#caretPosition === 0. Fixes #128