solve the problem with "widgetGetDrawWindow: no DrawWindow available"