Fixed an issue that resulted in a posterior probability value being used when it should have been a joint probability value.