fixed some bug in importFile