small bug in deltas for tensor