Fixed reload of legends when clicking on layer group