Fixed reduce to pass spec.