Fix latex warnings.
Fix shifts.