Logging proper mapper id

If mapper job takes longer than one for loop step, we will get wrong mapper id at the end.