fixed a nasty bug created because we were not checking to see how many or what channels were actually being recorded and assuming they always started at zero