Fix history variable name