Minor fixes to text layout