fix a bug where pipe messages were dropped by accident