fix bug in single gaussian

fix bug in single gaussian