fixed incorrect variable name in hist template