Fixed the sweep bug