Fixed global variable pollution.
Merge pull request #4 from pekepeke/fixGlobalVarPollution

Fixed global variable pollution.