fix bug on batch import