Fix #189 search_cursor() problem