fixed a noncompiling template