Fixed iterator destruction