fixed bug in dp_bayes.jl with indexing