The active layer is set into the background layer. The background layer has to be an image layer. After that the active layer will be deleted.