Fix bug when Replay on odd number of data