Failed to set `colorWarning` field in `getColorFromIndex` method.