Fix bug in reading cursor tracking

Also the reprint detector, but commented out because
I just can't get the damn thing to work.