Fixed the OutOfBounds issue with CC