Fixed strict warning caused by calling non-static method statically