fix wrong delete error