Be able to open the legend more than once (On Chrome)

Fix #561