import bug fix on duplicate / missing records