fix root pointers