Fixed double text and backspace code