Fixed incorrect var usage. Thank you ViktorLoerincz!
Fixes #80