fixed cursor on index records in demo