Fix another bug in gradient.