Fixed CSV headers sent multiple times