Fix break when child element is not found