SC: Fixed some XINDEX warnings.