Correct reading of number of channels.