fix JLD on temporary iterator bug