found a bug in mapreduce job for the dictionary generation function