fixed a minor bug in communication