fix adapter issue