Fixes incorrect layertree checkbox & layermanager btns