Fix clear method in baseShape