Fix switching between objects

This would maintain the `fields` array for one object, with n tracks,
for the next object, which probably doesn't have n tracks. So it broke.