fix perceptron example