minor fixes to the code executed when logistic prior is specified