Fixed wrong updates of dicts