Fixed a couple bugs in TD-learning.