Fixed asychronized problem for AnimationPatch.

There might be recording frames after rendering frames. They should
also be turned into rendering frames.