Merge pull request #11 from g13013/master

fix global var  lookup error when undefined