Fixed an error when dragging Stack/Watch/other tabs between notebooks.