fix ip query problem