fix: using undefined variable
Merge pull request #47 from positivezero/master

fixed using undefined variable