fix small issue caused by a misspelled variable name