fixed variable name that was misspelt