make index list to set, fix Scanner bug with UIScanner wrapper