Fix bugs in call of import_raw_data