Fixed "iterators not compatible" error