fixed ESC and writing in the middle of the message