Fixed var type

Accidentally checked for a variable that didn't exist.
Now added the correct name (whoops)