Fix to getAdapter(...)