make sure that a trajectory has the unit cell set