Update main.tmpl

try to fix build issue