fixed bug in gradient descent