Fixed bugs that prevented dhcp from working.