Change initialization and fix a bug in emp_bayes