fixed deleting entries from dictionaries