fix static method reference problem.