fix call to static method inside class