fixed new bug in likelihood calculation