Fix bug when on called with a single host