Fix duplicate host bug