fix csv export bug