fix read duplicated variants problem