fix backspace issue on some platforms