fixed small issue with prior