Fixed reduce problems.