Fix query's cursor descriptor

Change-Id: I25ca5742352b1070ad0e04f450cdbef20ebcf07d