Fix bug with run_remote_command