Fixed an issue where the title was overflowing if it was too long.