Ad Hoc fix

not a very elegant fix - but guaranteed to prevent any exceptions
resulting from deleting.