Fix probability calculation, release similarities

Previous code was incorrect, lacking addition of some weights, leading to potential incorrect result.