fix: use getAdapter instead of queryAdapter