fixed dependency bug in dhcp template