fix defects