Fix bug in hsv2rgb transform