fixed keyerror on unknown sessions