I made the summary concerning Grid Item problem.
From this table, the following temporally rule makes no error.
1. If the color of a number 1 is yellow, the first coloring operation is yellow and the second is green.
2. If the color of a number 1 is green, the first operation is green and the second is yellow.