Corrected a bug in the Cursor class
fixed bug in the ObservableQuery class