fix missing variable for template