fix client adapter