Fixing CSV generation bug.