Fix reference to template manager in context.