fix CursorNotFound exception on influenceexplorer rake task