fixed malformed messages