Fixed some bugs on dhcp server