Fixed some issues on delete characters on IE