Fixed a CursorNotFound bug in cached_recs