Jittering fixed in sweep_and_prune