Fix color conversion bug