Update main.tmpl

try to fix build issue 3rd attempt