fix variant creation