fixing a bug in sendCmd2Robots