Fix bug: warn user if no layers are selected