fixed a bug with the reversed color arrays