fix delete_layer controller.