Fix variable in template to match template code

Keep things in sync.