Fixed bad var reference in template.