Fix the type bg-variant problem