Fix usage of non-static method.