Fix switching between objects

e3993bbdc270cc9ea0d835a387bd5effc408fa3e 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.

This maintains `fields` just for window resizes.