Fix typo in replay code