Fixed a bug from the last commit

Changed a variable name to something that actually exists