a bug fixed for android 2.2 - queryNumEntries