fix for receiving messages > 2Mbytes