Fixed clearALlComponents method