Calculate @index correctly for the can.List