fix variant check