fixing local vars template