fix bug: tensor check allow for more computation error
bug reported: D. Mainprice
tensor fix
new version