fix adapter defects