fix widget syntax