little modif in gettemplate.