fix exception of iterator