Fix Some Issues on Select and CSV EXPORT