fixed bug for communication