Fixed Perceptron example bug