Fix incorrect var name in the history template.