Fixed perceptron update.