fix bug for duplicate task import