backspace: fix corner cases