corrected color assignment