Fix section endings.