Fixed the perceptron