fix send command bug