Stop gradients from repeating