fixed a bug on matlab.MarginalDistribution