fixed a stupid bug in Collector