Fixed some style issues on mapreduce

'Otherwise you can get unexpected behavior'

PS: 

Why don't we add a check to prevent people shooting themselves in their foot?