fix static method in controller