important fix!
now REALLY fixing adding and removing of Layers in LayerSelector when logging in and out