fix for undefined variable
Merge pull request #81 from tmihalik/1.2.x

fix for undefined variable