fix reference to template