fixed a bug in import script