fix: detect root from first response record