Fix the bug that Replayer doesn't reach the end if the final command is non-delay