fix wrong variable bug
Merge pull request #36 from teharrison/master

fix wrong variable bug