Bokeh legend adding extra dot when changing the category name

When values in a category are all numbers, legend works fine.
When changing the first numerical value (0-> Air) it is still fine,
But as soon as I change a second value (1-> Oil) or any other change, it adds additional dots in the legend as you can see below.

I tried different pallets including “Turbo256” but still the same problem.

Hi @mfaramarzi, if you must cross-post questions in different forums (e.g. StackOverflow), we appreciate if you add cross-links everywhere, so that future users can always get to an answer, regardless of where they find find the question.

This just seems like a bug, so you should file a GitHub Issue however we will not be able to look anything unless you provide complete details:

Can you paste your code?