fixed setting templateGroup for