fixed adapter bug