Fixed a bug where the number of drawn channels could become zero when loading new data