fixed sweeping bug control