Fixing hsl conversion