Fix for textwidget not rendering properly