Fixed HSV2RGB fucntion