minor tweak to color conversion to make sure it converts back