fix misnamed variable causing valueerror

fixing this one character typo, seems to be a copy paste error