attempt to fix bug affecting long messages