fixed an iterator