COrrecting varianttype bug