Fix several bugs in exclusive scan. There's add back function need to fix as well. Do it tomorrow.