bug fix in color conversion macros