Fixes hidden layer backpropagation