Fix garbage record iteration