Fixed a minor bug in remote command service