Fix Variable Scope/Name Issues In Feed Templates