if child elements, look for parent link, fix #15