fix for undefined variable
Merge pull request #80 from tmihalik/1.2.4

fix for undefined variable