fix choice of template