fix widget splitting bug