Fixed CSV preview generation