try to set the root after building the static tree