bugfix setting focusLayer after adding new layer