fix the buildvector->insertp[sd] logic to not always create a redundant