Gaussian maximize fix