Are you using any break statements or other conditions inside the DataLoader loop?
If not, could you post an executable code snippet with random values for the dataset inputs, so that we could try to reproduce it?