fix bysegment-query-runner