fix crash on missing key