fix widget attributes