diff --git a/CHANGES/v2.3.txt b/CHANGES/v2.3.txt
index a6b3056641cb43459c84407aecbee67b912b1b57..955a18246ceab46050e0ceb79ae8fb4c550e74ff 100644
--- a/CHANGES/v2.3.txt
+++ b/CHANGES/v2.3.txt
@@ -154,6 +154,7 @@ See branch \branch{v2.3} on git repository.
 - fix a bug in \ref CS2BACKBONE (v2.3.1) related to ring currents of HIS and TRP
 - Fixed bug in if condition in \ref PCAVARS so that you can run with only one eigenvector defined in input 
 - Fixed bug in \ref HBONDS that used to apear when you used DONORNS and ACCEPTORS with same numbers of atoms 
+- Fixed bug in \ref DISTANCES that appears when using BETWEEN and link cells.
 
 For developers:
 - plumedcheck validation has been made stricter. All the checks are now described in the developer manual.
diff --git a/src/multicolvar/Distances.cpp b/src/multicolvar/Distances.cpp
index 3f76a877193450820e4a8efa6e98a8258f5a74dd..62927128401ee071683186c9656ceb7283fc66e5 100644
--- a/src/multicolvar/Distances.cpp
+++ b/src/multicolvar/Distances.cpp
@@ -165,7 +165,7 @@ PLUMED_MULTICOLVAR_INIT(ao)
          use_link=true; rcut=lt->getCutoff();
      } else {
          vesselbase::Between* bt=dynamic_cast<vesselbase::Between*>( getPntrToVessel(0) );
-         if( bt ) use_link=true; rcut=bt->getCutoff();
+         if( bt ){ use_link=true; rcut=bt->getCutoff(); }
      }
      if( use_link ){
          for(unsigned i=1;i<getNumberOfVessels();++i){