corrected a bad query.