fixed an issue with creating a new variant