fix bug with gaussian