Fix bugs on import data by opening a record file

before onImport, the dataHandler must be initialized