queryTracing bug fix