1. removed an extra call to SetVectorBase() in the SetMode() function.