fix for garbled messages