dirichelet distribution bug fixed