fix failure when deleting an entry