static method call bug fix