fix if key is missing