fixed HSV write output