patches: fixed bug in computation of gaussian mitures