fixed duplicate color bug