Remove obsolete StopIteration warning