fixed another important bug in likelihood calculation...