Fix book warnings.

From #6170.