patch code
pathc
Merge pull request #41 from betashepherd/master

build error in master branch, var not defined