fixed a few ba_import_csv logic bugs