fix repeating colors bug