iterate over parents to find hub when detaching