fixes to dict