fix bug #3783, instanciate class before calling static method
Merge pull request #146 from ruleant/bug_3783

fix bug #3783, instanciate class before calling static method