fixed using wrong variable
Merge pull request #6 from maxtoroq/patch-1

fixed using misleading variable