Small bug fix for when posterior is all 0's.