Fix colors[i] would burst the index size