Fix HSL overflow issue. Fixes #209