Fix cursor position when bullet length has changed