fixed foreach csv