RNN with bug-free backprop