Fixed color conversion overflow problem