fix multnomial naivebayes