bugfix #237 choose a template from rootleveltemplates when default template dont exist