fix defects.