Corrected results csv generation