fixed bug where template info was duplicated