fixed template reference error