Simplify candidate window checking. Fixed backspace removal.