Fix the overflow issue of ruby text
Merge branch 'patch' for v3.0.1