Fixed corner-case for hsv_to_rgb