Fixed using wrong variable
Merge pull request #33 from ZZromanZZ/bugFix

Fixed using wrong variable