Fixed id vs index problem for colors