Fix sending commands