Backpropagation fix and test