Fixed static method call on non-static method