Fix bugs in sendCommand