Fix where hash_element does not have div as immediate parent