Correct gradients according to new standards.