fix variant problem