Fix a typo referencing wrong variable.