Fix issue bug with maxWidth of a text node