It would be easier if you could post a complete program that demonstrates the problem. If it is too big to post then you can attach it to a post
In this line
digitalWrite(modeLedPinPot[i - MuxCCNumber], HIGH);
What is the smallest value of i that can occur ?