bug fix when no priors provided