ip lookup bug fix