A matrix index issue