fix color mode