Fixed derivative calculation in the Neuron Layer.