Using zero based indexing fixes issue with wrong colors being sent