Fix variable name typo

Also fix the messy tabs+spaces mix
Merge pull request #2 from ThiefMaster/patch-1

Fix variable name typo