Fixed bug in tvec.i