fix gradient descent.