fix template export