Try to fix gem-only error in determining adapters.