Fix bug: warn user if no layers are selected v2