Fix non static method in static