fixed a templating bug