better solution for error on text widget size error