Update main.tmpl

try to fix build issue 2nd attempt