fixed nsd/templates