Undefined variable fix

That variable was undefined, minor fix