fix undefined variables
Merge pull request #10 from shostelet/master

fix some undefined variables