fix double rootpanel setting