fix default adapter issue