fix type issue in multinomial.getProb