Fixes variable names

Found by @grom358
Merge pull request #5 from larowlan/patch-1

Fixes variable names