Export into CSV with corect data length