fix problem in getOneElementByTagNameAndAttribute methods due to previous update