Fixed sweepRoot call