fixed generation color changing