Fixed pb with Koray's latest patch (repeatTensor)