Fix fact query in query_nodes

properly return an array of values of the requested fact