fix state.sweeping call