Fix probability formula bug.