fixed perceptron by wiki