Fix deletion of entries.