Fixed MNIST bug when using IndexSpace for targets