change uint to int for channelIndex
Unfix