Corrected logic for returned channel files

Corrected logic to clear returned channel files array between iterations over channel entries. Was repeatedly adding to array on each iteration and returning an incorrect data set.