fix text layout