make sure term links get deleted when terms get deleted