toList for iterator fix