Add var'' in front of local variables in template #113