Proxy: Fixed out-of-scope error for TemplateScope helper class