fix a bug about not considering the case where the base is StaticElem in the findRoot() method