fix adaptertype bug