Fixed bug when Gaussian distribution is hidden.