fix(core): duplicate variant documents into the same variant (#14041)