fix widget registration