fix variant update js