setState_pd: make sure the root is always bracketed