fixed csv bug