fixup bug when assign ip address.