indexselect done, fix some scanselect mem issue
merg