bugs in probabilityDistributionPath fixed