fix bug, sigma2 maybe negative