fixed hue apply function