fixed bug in import script