Fixed indexing of the random color