fix a bug in gmm.go