Fix inverse call in TemplateHelper

Change-Id: Ie39e88ba303b7f243bfb1e1f82ba857126e616f5