bugs fixed for GMM using regularization