Fixed bugs in SweepAndPruneAlgorithm.