Fixed an overflow with long messages.