Corrected a couple of errors to do with creating new variants