Small fix in residual gaussian distribution.