diff --git a/README b/README
index 2ece30a2026e139f6142f65db4d0b39ac181e776..4efccce3d0a3765b395feefbe75ddc124f8587ed 100644
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
 Thank you for using CATview - the Colored & Aligned Texts view.
 
-This is version 2.3.
+This is version 2.31.
 
 For information about the features and usage of CATview, please visit:
 https://catview.uzi.uni-halle.de
diff --git a/catview.js b/catview.js
index 9217e333b9dc0e236680d115dadb72e15bb84cf8..1cf0dc15bbe3fdfbdc8cd8205f779567bd2f1969 100644
--- a/catview.js
+++ b/catview.js
@@ -23,7 +23,7 @@
 */
 
 // CATview - the Colored & Aligned Texts view
-// version 2.3
+// version 2.31
 const CATview = new function() {
   this.debug = false;
 
@@ -687,7 +687,7 @@ const CATview = new function() {
           CATview.drag_do_end = false;
 
           if (CATview.drag_callback != null) {
-            return CATview.drag_callback(old_pos_idx, new_pos_idx);
+            return CATview.drag_callback(old_pos, new_pos);
           }
 
         });
@@ -1727,7 +1727,7 @@ const CATview = new function() {
     if (isNaN(index) || CATview.edges == null || index < 0 || index >= CATview.edges.length )
       return false;
 
-    CATview.edges.splice(edge, 1);
+    CATview.edges.splice(index, 1);
 
     return true;
   };