fix selfdeletion