Fixed minor bug for loading HDF5 config from a trajectory