new fix for tensor.py
geo test fail, commit other changes to find out why.