Fix bug in belief value calculation