Add _findElemAttr for fixed cannot find top level elem bug