Fix visualizer when the field is all nans or when the field is changed.
Fix slice extraction in the visualizer.