fix crash on missed key in dictionary