Fix backpropagation (tested on simple network with 1 hidden layer)