diff --git a/src/scm/plams/trajectories/rkffile.py b/src/scm/plams/trajectories/rkffile.py index 8e5dd97c..a6aee2b3 100644 --- a/src/scm/plams/trajectories/rkffile.py +++ b/src/scm/plams/trajectories/rkffile.py @@ -496,7 +496,7 @@ def _read_bond_data(self, section, step=None): step_txt = "" if step is not None: step_txt = "(%i)" % (step + 1) - if not ("History", "Bonds.Index%s" % (step_txt)) in self.file_object: + if not (section, "Bonds.Index%s" % (step_txt)) in self.file_object: return conect indices = self.file_object.read(section, "Bonds.Index%s" % (step_txt)) connection_table = self.file_object.read(section, "Bonds.Atoms%s" % (step_txt))