Fixed replay bugs.