fix consolidation bug in gathering from threads