Fix hierarchical query result list.