Fix tab numbering on drag-drop