small improvement for CursorUtils