fix wrong behave on delete