fix: scope of the template maps