fix for traversing to the html element