Fix error in vector code.