fix bug of draggable widgets