fix ip->int