Why is the color redefined with the same value?