Make term sections work again

From #2117.