fixed some issues with the base perceptron stuff