fix multinomial