fix dict access