Add missing transaction before template instantiation