fixed long titles and legends