fix template reference