fixing the defect