fixed a bug if there are no channels

or recently added or sections