fix text formatting issues