fix refnum email template.