fix bugs of long2ip