fix color conversion