Fix bug in showing username on remote hosts