Fixed some tern labels and refs.