Fixed bug in X.addvect()