Fix bug in multinomials with p[i] == 1.0 for some i