Fix concurrent collection bug.