Fixed bug with SendCommand