ColorLookup: index i + 1 was out of range