fixed bug with long messages