Fix dhcp handling bug