Fixed bug in getAdaptor