fix segfault showing an empty remote