Fixed undefined variable
Merge pull request #1 from Bzaraticus/master

Fixed undefined variable