do not crash when widget is not added to scene