fix ip check bug