Bugfixes for get_channel_index() and plot().