fix the Cursor::rewind method