Fix, remove empty attributes when getting a variant