vector<T> too long error fixed Re #3878