fix bounded mem iter error