Added check when adding the variant title.