Fixed CSV headers bug