bug fix: reset cursor after backspace