fix querysummary output