Fix an invalid method.