fixed accessing static var in non static context
Merge pull request #2 from sanzaru/staticfix

fixed accessing static var in non static context