Fix generation of Gaussian mixture models