Fixed bug with exceeding the number of characters in the message.