fixed incorrect function var
Merge pull request #3 from pcarenza/jb-mr1

fixed incorrect function var