Update scanselect.cpp