Correct invalid variable access
Merge pull request #1 from lorefnon/bugfix-invalid-var-reference

Good catch!