cuda_iplookup: bug fixed