Fix fail calling class method.