Fix to superclass cycles in define-widget