corrected query string fix