fix dictionary access