fixed backprop with tanh