Fixed some should-be-local variables
Merge pull request #2 from fruitwasp/should-be-local

Fixed some should-be-local variables