fix ip name checking