bug fixed in communication logic