Fixed several bugs in the actor-critic algorithm.