Fix for delete missing the next cursor

When iterating over a cursor and deleting one, it skips the next one when calling cursor.continue();.