committed fix for query