Fix bug in import/export regarding some API params