fix the get ip bug