Fix bug in hsl value setting