Logging proper mapper id

If mapper job takes longer than one for loop step, we will get wrong mapper id at the end.
Merge pull request #1 from tjackowiak/patch-1

Thanks!