Bugfix: now also deletes unnamed layers