Fixed a map/reduce bug.