Fixed clearAll method