Fixed bugs in cursors, update version