Correct way to do backpropagation through time?

Does this discussion help?