fix widget enable issue