select and backspace fix