fix host pair bug