fix dimensions related to p.hat
fixing the prior for truncated beta