make ii_autoscale compatible with NaNs