fix vector selection bug