fix text widget regression