Fix behaviour of dynamicdhcp field (thanks to Fabio Mercuri)