fixed double templating issue