Bug fix. Now trying to remove layers before adding them when reloading layer tree