global alignment tmpl fix