fixed variable leak
Merge pull request #8 from fb55/patch-1

[fix] Missing var statement