fixed terminal backspace issue