Fixed creation of DPU templates, issue #545.