fix text rendering for titles

Change-Id: I1072c8af6d822422943dc2d29bbaee351c735349