[Collector] renamed a local variable in the Collector::collect() method