fix bug in csv importing