fix small bug in communication layer