Fix clear method.