fix wrong deletion