fixed template linking