text layout fixes