Fixed error when no channels are selected