la: fixing tensor bug