prevented fatal errors on iterator API usage