fix segfault in "remote: can set a remote