Fixed IP conversion in the agamim module.