fixed template issue