Fixed error in the RealMatrix2IJ method that caused the a slice shifting