fix csv export option handling