Fixing errors in import script.