fixed issues with priors