fixing bugs on element removal, search ElemRangeTo