fix bug with gaussian bounds