Sweep: Bug fix

-Fixed some bugs.