"Create trajectory lines" uses number of frames in wrong dataset

I have added two XYZ files in Ovito:

  • File 1 contains 2 frames
  • File 2 contains 1000 frames

I now want to show the complete trajectories of the atoms in File 2. If I first load File 1, and then File 2, the created trajectory only contains two points (or an error if I don't check that File 1 contains multiple frames). But if I first load File 2, and then File 1, I get the full trajectories of the atoms in File 2.

It seems this is due to the fact that Ovito takes the number of frames from the first loaded dataset, and not the dataset which actually contains the atoms for which the trajectories should be created (or the file I have chosen in the Object selector dropdown).