Fix s:search_cursor() problem