fixing import csv crashes