Fixed CSV object creation and iteration