fix big bug in log likelyhood computation.