Fixed a bug in hsv2rgb found by Jacques Tramu