Fix remote command invocation