fix scanWidget allocation.