Fix bug in ids_collector
Fix bug with self.count