export template fixing