Fixed security leak with deletion