torch vector fixes