fix dirty hack during widget creation (forcing new widget type to abstract type 'widget')