fix dictionary reference