repair of dirty dict