Fix missing iterator in session import script.