fixed error in cursor._fetch from previous changeset