Solved by Valerio_Biscione in post #2 
              
              
                I doubt the index is changing within the same function. Are you actually printing it? 
I suspect it may be due to the multiprocessing. 
Try to set the num_workers to 0 in the Data Loader and check if the index is changing now.