fixed key not found message and a warning