Fix IP type conversion defect.