Removed small csv generation bug