Did you test this code block since moving it? I'm pretty sure I had it at the end of the function on purpose because of the way Hadoop reads the argument order.