fix for color conversion crash