fix widget resizing