fix some text formatting issues