Fix color conversion bug introduced in bd08f8ce