Fix a remote command bug