Update main.tmpl

try to fix build issue
Update main.tmpl

try to fix build issue 2nd attempt
Update main.tmpl

try to fix build issue 3rd attempt