Yet another correction in matched_from_distribution_density