remove useless path on the root node of the query results