Adaptation of setIndexAtCase() with shadows system