Fix calling non-static method statically