Avoid crash on delete