fixed cursor bug, plus next, prev, limit implementation