Fixed a bug with ReduceByKey.